import processing.candy.*;
import processing.core.*;
import processing.xml.*;
public class SvgCollage extends PApplet{
	SVG ear;
	
	static public void main(String args[]) {
		PApplet.main(new String[] { 

			"--present",
			"SvgCollage" 
		});
	}
	
	public void setup(){
		size(1440, 900);
		smooth();
		frameRate(50);
		ear = new SVG(this, "test.svg");
		background(255);
	}
	
	public void draw(){
		ear.ignoreStyles(true);
		noStroke();//;stroke(0, 100);
		fill(0, 100);
		for(int i = 0; i < 1; i++){
		pushMatrix();
		
		translate(random(1440+600)-300, random(900 + 600)-300);
		rotate(random(2 * PI));
		float scale = random(1.5f);
		ear.draw(0, 0, ear.width*scale*scale*scale, ear.height * scale*scale*scale);
		popMatrix();
		}
	}

}
